import Layout from '@/layout/index.vue'

const inwarehouseRouter = [{
  path: '/inwarehouse',
  component: Layout,
  isShow: true,
  redirect: 'noRedirect',
  name: 'inwarehouse',
  alwaysShow: true,
  meta: { title: '库内管理', icon: 'grid', },
  children: [
    {
      path: 'goods',
      component: () => import('@/views/inwarehouse/goods/goods.vue'),
      name: 'goods',
      meta: { title: '物料管理', permissions: ['wms:goods:'], icon: 'document' }
    },
    {
      path: 'inventory',
      component: () => import('@/views/inwarehouse/inventory/inventory.vue'),
      name: 'inventory',
      meta: { title: '库存管理', permissions: ['wms-warehouse:inventory:'], icon: 'document' }
    },
    {
      path: 'project',
      component: () => import('@/views/inwarehouse/project/project.vue'),
      name: 'project',
      meta: { title: '项目管理', permissions: ['wms:project:'], icon: 'document' },
    },
    {
      path: 'product',
      component: () => import('@/views/inwarehouse/product/product.vue'),
      name: 'product',
      meta: { title: '产品管理', permissions: ['wms:product:'], icon: 'document' }
    },
    {
      path: 'driver',
      component: () => import('@/views/inwarehouse/driver/driver.vue'),
      name: 'driver',
      meta: { title: '车辆管理', permissions: ['tms:vehicle:'], icon: 'document' }
    },
    {
      path: 'movelog',
      component: () => import('@/views/inwarehouse/movelog/movelog.vue'),
      name: 'movelog',
      meta: { title: '调拨记录', permissions: ['wms-order:move:'], icon: 'document' }
    },
    {
      path: 'goodsProject',
      component: () => import('@/views/inwarehouse/goodsProject/goodsProject.vue'),
      name: 'goodsProject',
      meta: { title: '紧急挪用', permissions: ['wms-order:goodsProject:'], icon: 'document' }
    },
    {
      path: 'stocktaking',
      component: () => import('@/views/inwarehouse/stocktaking/stocktaking.vue'),
      name: 'stocktaking',
      meta: { title: '盘点记录', permissions: ['wms-order:stocktaking:'], icon: 'document' }
    },
    {
      path: 'log',
      component: () => import('@/views/inwarehouse/log/log.vue'),
      name: 'log',
      meta: { title: '出入记录', permissions: ['wms-warehouse:in-out-log:'], icon: 'document' }
    },
    {
      path: 'warehouse',
      component: () => import('@/views/inwarehouse/warehouse/warehouse.vue'),
      name: 'warehouse',
      meta: { title: '仓库管理', permissions: ['wms:wareHouse:'], icon: 'document' }
    },
    {
      path: 'area',
      component: () => import('@/views/inwarehouse/area/area.vue'),
      name: 'area',
      meta: { title: '库区管理', permissions: ['wms:warehouse-area:'], icon: 'document' }
    },
    {
      path: 'location',
      component: () => import('@/views/inwarehouse/location/location.vue'),
      name: 'location',
      meta: { title: '库位管理', permissions: ['wms:warehouse-location:'], icon: 'document' }
    }
  ]
}]

export default inwarehouseRouter
